<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$this->title?></title>
<link href="<?=base_url()?>res/css/css.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url()?>res/css/jquery/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url()?>res/javascripts/kendoui/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url()?>res/javascripts/kendoui/styles/kendo.metro.min.css" rel="stylesheet" type="text/css" />
<?php
        foreach($this->style as $style_name){
            echo '<link href="' . base_url() . 'res/css/' .  $style_name .   '"'   .  '   rel="stylesheet" type="text/css" />' . "\n";
        }
?>
<script  src="<?=base_url()?>res/javascripts/jquery/jquery-1.8.3.js"   ></script>
<script  src="<?=base_url()?>res/javascripts/jquery/jquery-ui-1.10.2.custom.min.js"   ></script>
<script  src="<?=base_url()?>res/javascripts/kendoui/js/kendo.web.min.js"   ></script>
<script  src="<?=base_url()?>res/javascripts/core.js"   ></script>
<?php
        foreach($this->js as $script_name){
            echo '<script  src="'  . base_url() . 'res/javascripts/' . $script_name . '"   ></script>' . "\n";
        }
?>
</head>
<body>
    <div class="head">
        <div class="logo">
            <div class="h3-title">Activity Managment</div>
          
            <div class="h3-title  f-size">Faculty of Science and Technology</div>
            <div style="width:300px;height:auto;position: absolute;right:50px;top:25px;text-align: right;color:#555;font-weight: bold;font-size: 13px">
                
              <?php
              if(isset($_SESSION["username"],$_SESSION["id"] , $_SESSION["type"]) && $_SESSION["type"] == "class_a"){
                     echo 'ยินดีต้อนรับ : "ผู้ดูแลระบบ"  เข้าสู่ระบบ';
              }else if( isset($_SESSION["username"],$_SESSION["id"] , $_SESSION["type"]) && $_SESSION["type"] == "class_t" ){
                    echo 'ยินดีต้อนรับ : "' . $_SESSION['username'] . '"  เข้าสู่ระบบ';
              }else if( isset($_SESSION["username"],$_SESSION["id"] , $_SESSION["type"]) && $_SESSION["type"] == "class_c" ){
                    echo 'ยินดีต้อนรับ : "' . $_SESSION['username'] . '"  เข้าสู่ระบบ';
              }
              ?>
            </div>
        </div>
        <div class="head-menu">
              <?php
              if(isset($_SESSION["username"],$_SESSION["id"] , $_SESSION["type"]) && $_SESSION["type"] == "class_a"){
                     include_once 'application/views/templates/menus/menu_admin.php';
              }else if( isset($_SESSION["username"],$_SESSION["id"] , $_SESSION["type"]) && $_SESSION["type"] == "class_t" ){
                     include_once 'application/views/templates/menus/menu_teacher.php';
              }else if( isset($_SESSION["username"],$_SESSION["id"] , $_SESSION["type"]) && $_SESSION["type"] == "class_c" ){
                     include_once 'application/views/templates/menus/menu_collegian.php';
              }
              ?>
        </div>
    </div>
    <div class="content-body">